package com.cr.front.audit.service.impl;

import com.cr.front.audit.dao.repository.AuditRepository;
import com.cr.front.audit.pojo.dto.AuditSaveParam;
import com.cr.front.audit.service.AuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuditServiceImpl implements AuditService {

    @Autowired
    private AuditRepository auditRepository;

    @Override
    public void addAuthenticationAudit(AuditSaveParam auditSaveParam) {
        auditRepository.addAuthenticationAudit(auditSaveParam);
    }

    @Override
    public void addDriverLicenseAudit(AuditSaveParam auditSaveParam) {
        auditRepository.addDriverLicenseAudit(auditSaveParam);

    }
}
